<?php

namespace app\index\model;

use think\Model;
use traits\model\SoftDelete;
class Video extends Model
{
    use SoftDelete;

    protected $autoWriteTimestamp = 'datetime';
    //状态
    public function getStatusAttr($value)
    {
        $status = [1=>'应用',2=>'禁用'];
        return $status[$value];
    }
    //第一级
    public function getTypeAttr($value)
    {
        $type = [1=>'工程建筑',2=>'工程建筑大师',3=>'工程',4=>'工程大师',5=>'程程程'];
        return $type[$value];
    }

    //第二级
    public function getTyAttr($value)
    {
        $ty = [1=>'公开课',2=>'认证课',3=>'任性课'];
        return $ty[$value];
    }

}